import ajax from "@/axios/Ajax";

//获取供应商列表
export function supplierQuery(params) {
  return ajax({
    url: "/purchase/supplier/list",
    method: "get",
    params,
  });
}

//新增供应商
export function supplierAdd(data) {
  return ajax({
    url: "/purchase/supplier/add",
    method: "put",
    data,
  });
}

//编辑供应商
export function supplierUpData(data) {
  return ajax({
    url: "/purchase/supplier/update",
    method: "post",
    data,
  });
}
